More correct handling of CSIZE, even though this is totally a sugar
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 27 Jan 2003 17:19:46 +0000 (17:19 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 27 Jan 2003 17:19:46 +0000 (17:19 +0000)
pill with our settings...

gpsbabel/jeeps/gpsserial.c

index fcef833366d5b863fe2f3cb956677a4a784459a3..1565a531bb07734551165a5191da4cf4d12a334c 100644 (file)
@@ -248,7 +248,8 @@ int32 GPS_Serial_Open(int32 *fd, const char *port)
        return 0;
     }
 
-    tty.c_cflag |= (CREAD | CS8 | CSIZE | CLOCAL);
+    tty.c_cflag &= ~(CSIZE);
+    tty.c_cflag |= (CREAD | CS8 | CLOCAL);
     cfsetospeed(&tty,B9600);
     cfsetispeed(&tty,B9600);